﻿<UserControl x:Class="ucActions"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid >
        <Grid.Resources>
            <Style x:Key="buttonStyle" TargetType="{x:Type Button}">
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Opacity" Value="0.30" />                        
                    </Trigger>
                </Style.Triggers>
        </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" MinWidth="150" />
            <ColumnDefinition MinWidth="150"/>
        </Grid.ColumnDefinitions>
        <ToolBar Background="Transparent" Grid.Column="0">
            <Button Name="buttonSaveMain" Style="{StaticResource buttonStyle}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/images/actions/ctrlsave.png" Name="saveImage"
                                   MinWidth="20" Height="20" Width="25"  />
                    <Label>Save</Label>
                </StackPanel>
            </Button>
            <Button Name="buttonEditMain" Style="{StaticResource buttonStyle}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/images/actions/edit.png" Name="editImage"
                                   MinWidth="20" Height="20" Width="25"  />
                    <Label>Edit</Label>
                </StackPanel>
            </Button>
            <Button Name="buttonAddMain" Style="{StaticResource buttonStyle}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/images/actions/ctrladd.png" Name="addImage"
                                   MinWidth="20" Height="20" Width="25"  />
                    <Label>Add</Label>
                </StackPanel>
            </Button>
            <Button Name="buttonDeleteMain" Style="{StaticResource buttonStyle}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/images/actions/delete.png" Name="deleteImage"
                                   MinWidth="20" Height="20" Width="25"  />
                    <Label>Delete</Label>
                </StackPanel>
            </Button>
        </ToolBar>
        <ToolBar Background="Transparent" Grid.Column="1" HorizontalAlignment="Right">
            <Button Name="buttonCancelMain" Style="{StaticResource buttonStyle}">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/images/actions/cancel.png" Name="cancelImage"
                                       MinWidth="20" Height="20" Width="25"  />
                    <Label>Cancel</Label>
                </StackPanel>
            </Button>
        </ToolBar>
    </Grid>
</UserControl>
